import { createRouter, createWebHistory } from 'vue-router'
import CesiumDemo1 from '../views/CesiumDemo1.vue'
export const routes = [
  {
    path: '/',
    name: 'vite+vue3+cesium',
    component: CesiumDemo1,
  },
  {
    path: '/2',
    name: '隐藏控件，精简显示',
    component: () => import('../views/CesiumDemo2.vue'),
  },
  {
    path: '/3',
    name: '加载天地图',
    component: () => import('../views/CesiumDemo3.vue'),
  },
  {
    path: '/4',
    name: '加载高德地图',
    component: () => import('../views/CesiumDemo4.vue'),
  },
  {
    path: '/5',
    name: '添加点、文字、图标',
    component: () => import('../views/CesiumDemo5.vue'),
  },
  {
    path: '/6',
    name: '修改点的文字、图标',
    component: () => import('../views/CesiumDemo6.vue'),
  },
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: routes,
})

export default router
